From 28617ff2d019e6ee3bd1e4e487567243297ab36e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 27 Feb 2008 13:19:42 +0000 Subject: [PATCH] Fix xm save command's #params check. Signed-off-by: Masaki Kanno --- tools/python/xen/xm/main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index da2de11d98..34bdc6756e 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -699,9 +699,6 @@ def xm_save(args): err(opterr) sys.exit(1) - dom = params[0] - savefile = params[1] - checkpoint = False for (k, v) in options: if k in ['-c', '--checkpoint']: @@ -710,9 +707,9 @@ def xm_save(args): if len(params) != 2: err("Wrong number of parameters") usage('save') - sys.exit(1) - savefile = os.path.abspath(savefile) + dom = params[0] + savefile = os.path.abspath(params[1]) if not os.access(os.path.dirname(savefile), os.W_OK): err("xm save: Unable to create file %s" % savefile) -- 2.30.2